<template>
	<div class="help">
		<div class="help-issue">
			<div class="issue">
				<div class="issue-title">
					<svg-icon class="icon" iconName="issue-help"> ></svg-icon>
					{{ $route.query.title }}
				</div>
				<div class="content" v-html="$route.query.content"></div>
			</div>

			<div class="link-serve">
				<div class="link-serve-btn" @click="$router.push('/member-service')">
					联系客服
				</div>
			</div>
		</div>
	</div>
</template>
<script>
export default {
	data() {
		return {
			issue: {
				title: '',
				content: ''
			},
			value: '',
			parentList: []
		};
	},
	components: {},
	created() {
		const id = this.$route.query.title;
		if (!id) {
			return;
		}
		let newParentList = this.parentList.map((items, index) => {
			return items.map((item, iindex) => {
				return {
					...item,
					id: index + '' + iindex
				};
			});
		});
		newParentList.forEach(items => {
			items.forEach(item => {
				if (item.id == id) {
					this.issue.title = item.name;
					this.issue.content = item.detail;
				}
			});
		});
	}
};
</script>
<style lang="scss" scoped>
.help {
	// margin-top: 20px;
	font-size: 28px;
	color: rgba(0, 0, 0, 1);

	.issue {
		width: 100%;
		background-color: #ffffff;
		padding: 34px 46px 50px;
		font-weight: 400;
		min-height: 96vh;
		.issue-title {
			margin-bottom: 50px;
			.icon {
				font-size: 33px;
				margin-right: 10px;
			}
		}
	}
}
.link-serve {
	width: 100%;
	height: 128px;
	line-height: 128px;
	text-align: center;
	background-color: #ffffff;
	@include flexBox(center, center);
	position: fixed;
	bottom: 0;
	.link-serve-btn {
		width: 336px;
		height: 80px;
		line-height: 80px;
		background: rgba(247, 1, 20, 1);
		border-radius: 40px;
		font-size: 28px;
		color: #ffffff;
	}
}
@supports (bottom: env(safe-area-inset-bottom)) {
	.link-serve {
		padding-bottom: env(safe-area-inset-bottom);
	}
}
.content {
	// display: flex;
	// /deep/ p {
	// 	width: 100%;
	// 	word-break:break-all
	// }
}
</style>
